/*
 * launcher.cpp
 *
 *  Created on: Mar 31, 2013
 *      Author: m
 */
#include <sstream>
#include <iostream>
#include <cstdlib>
#include "Puerta.h"
#include "Argv.h"
#include "ProcessAux.h"

int main(int argc, char **argv)
{
    char key = 'a';

    std::string puertaPath = "./puerta";
    std::string salaBusPath = "./sala_bus";
    std::string busPath = "./bus";

    int nPuertas = 3;
    int nSalasBus = 6;

    int nBuses = 3;
	Argv puertaArgs;
	Argv salaBusArgs;
	Argv busArgs;
	API::Puerta puerta(API::Puerta::CLIENT);

	puerta.init();

//	producerArguments.pushArg(queuePath);
//	producerArguments.pushArg(keyStr.str());
//	producerArguments.pushArg(numberOfConsumersStr.str());
//	producerArguments.pushArg(numberOfProducersStr.str());
	ProcessAux::launchProcess(puertaPath,nPuertas,puertaArgs);

    return 0;
}
